import java.util.Scanner;

public class java9 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入年份：");
        int num1 = scanner.nextInt();
        if (num1%400==0)
            System.out.println("闰年");
        else if (num1%4==0&&num1%100!=0)
            System.out.println("闰年");
        else
            System.out.println("平年");

        }

    }